<div class="row">
    <div class="span12 marginbottom20">
        <form method="post" action="<?php echo $this->url_edit . @$newscate->NEWSCATE_ID; ?>"  enctype="multipart/form-data">
            <div class="table_head"><h6><i class="icon-list-alt"></i>
			<?php
			if(@$newscate->NEWSCATE_ID > 0)
			{
				echo 'Thông tin '.@$tresource->RES_NAME;
				
			}
			else {
				echo 'Thêm mới '.@$tresource->RES_NAME;
			}
			?></h6></div>
            <div class="subcont">
                <ul class="details span10">
				
                   
					 <li>
					<?php echo $this->atheme->group_input2('newscate[NEWSCATE_TITLE]', 'Tên danh mục*', 'txtCodeTitle', 'required span6', @$newscate->NEWSCATE_TITLE, 'text', ''); ?>
					
					</li>
					 
					<li>
                       <?php echo $this->atheme->group_select2('newscate[NEWSCATE_STATUS]', 'Trạng thái', '', 'required ',array("1"=>"Hiện","0"=>"Ẩn"), @$newscate->NEWSCATE_STATUS, ''); ?>
                    </li>
					 
					<li>
                       <?php echo $this->atheme->group_input2('newscate[NEWSCATE_ORDER]', 'Sắp xếp: ', '', ' span6', @$newscate->NEWSCATE_ORDER, 'text', ''); ?>
                    </li>
					 <li><div class="row-form">
    <div class="span3"><label for="txtCodeName">SEO URL *: </label></div>
    <div class="span9"><input type="text" id="txtCodeName" name="newscate[NEWSCATE_CODE]" class="required span6" value="<?php echo @$newscate->NEWSCATE_CODE;?>">
	<input type="checkbox" id="check_autocomplete" <?php echo (@$newscate->NEWSCATE_ID > 0)?'':'checked=" checked"';?> > <em>Bật/tắt tự động điền SEO bài viết</em>
	</div>
    <div class="clear"></div>
</div></li>
                </ul> 
				<div><br></div>
				<ul class="span8">
                   <input type="submit" name="send" class="btn btn-primary" value="<?php
			if(@$newscate->NEWSCATE_ID > 0)
			{
				echo 'Lưu';
				
			}
			else {
				echo 'Thêm mới';
			}
			?>"/>
			<a href="<?php echo $this->url_index;?>" class="btn">Trở ra</a>
                </ul>
                <br clear="both">

            </div>
			<div><br></div>
                <br clear="both">
			
    </div>
	
	
        </form>
    </div>
 